/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis;

import java.security.AccessControlException;

import de.mnit.basis.sys.datei.DSLokal;

/**
 * @author Michael Nitsche
 * 06.01.2007	Erstellt
 */
public class ZENTRAL {

	public static final boolean online() {
		try {
			return !DSLokal.aktuell().kenntO("mn") && !DSLokal.aktuell().kenntO("src");
		}
		catch(AccessControlException e) { //Wird bei Webstart ausgelöst, wenn ohne VollZugriff
			return true;
		}
	}

}
